package com.bookstore.web.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2WebMvc;

/**
 * 网上书店系统启动类
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.bookstore"}) // 扫描所有模块的组件
@MapperScan("com.bookstore.**.mapper") // 扫描所有模块的Mapper接口
@EnableSwagger2WebMvc // 启用Swagger
public class BootStoreApplication {
    public static void main(String[] args) {
        SpringApplication.run(BootStoreApplication.class, args);
        System.out.println("启动成功");
        System.out.println("http://localhost:8080/doc.html");
    }
}